a=input("请输入字符串")
dict = {"字符":0,"空格":0,"数字":0,"其它":0}
for b in a:
    if b>'a' and b<'z' or b>'A' and b<'Z':
        dict["字符"] +=1
    elif b=="":
        dict["空格"] +=1
    elif b in "0123456789":
        dict["数字"] +=1
    else:
        dict["其它"] +=1
print(dict)
#print("字符",zifu)
#print("空格",kongge)
#print("数字",shuzi)
#print("其他",qita)
